package com.hotel.service.impl;

import com.hotel.model.auto.Roomtype;
import com.hotel.mapper.auto.RoomtypeMapper;
import com.hotel.service.IRoomtypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author
 * @since 2023-04-03
 */
@Service
public class RoomtypeServiceImpl extends ServiceImpl<RoomtypeMapper, Roomtype> implements IRoomtypeService {

    @Autowired(required = false)
    private RoomtypeMapper roomtypeMapper;

    @Override
    public int updateRoomTypeNum() {
        return roomtypeMapper.updateRoomTypeNum();
    }

    @Override
    public int updateRoomTypeStore() {
        return roomtypeMapper.updateRoomTypeStore();
    }
}
